$appheaderHeight: 56px; //头部高度
$appAsideWidth: 180px; //左侧侧边栏宽度

/** 重写若依侧边宽度 **/
$sideBarWidth: $appAsideWidth;

#app .sidebar-container {
  box-shadow: 0px 0px 12px #e5ebec;
}

.flex-column {
  display: flex;
  flex-direction: column;
}
.flex11 {
  flex: 1 1;
}

/*滚动条样式*/
::-webkit-scrollbar {
  width: 6px;
  height: 7px;
}

/*滚动条有滑块的轨道部分*/
::-webkit-scrollbar-thumb {
  background-color: #ebebeb;
  border-radius: 7px;
}

/*滚动条滑块(竖向:vertical 横向:horizontal)*/
::-webkit-scrollbar-thumb:hover {
  background-color: darkgrey;
}

/*同时拥有垂直和水平滚动条时交汇部分*/
::-webkit-scrollbar-corner {
  display: block; /*修复交会时出现的白块*/
}

/* 自定义popper样式 */
.global-popper {
  &.el-popover.el-popper {
    padding: 0;
    & > .el-button {
      width: 100%;
      justify-content: flex-start;
    }
  }
}

/* 暂无数据 */
.no-data {
  width: 100%;
  min-height: 250px;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: url(@/assets/images/common/empty.png);
}

/* 全局confirm弹窗header加下划线 */
.el-message-box__header {
  border-bottom: 1px solid #ebebeb;
}

/* 横向搜索栏样式 */
.search-bar {
  padding: 12px;
  padding-bottom: 0;
  background-color: #fff;
  border-radius: 4px;
  .title {
    color: #000000;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 13px;
  }
  .search-bar-inner {
    display: flex;
    justify-content: space-between;
    .el-form-item {
      margin-bottom: 12px;
      border: 1px solid #e5e5e5;
      border-radius: 4px;
      .el-form-item__label {
        padding-left: 12px;
        color: #666666;
        font-size: 14px;
      }
      .el-form-item__content {
        .el-input__wrapper {
          box-shadow: none;
        }
      }
    }
  }
}

.mb0 {
  margin-bottom: 0;
}
.mt0 {
  margin-top: 0;
}

.pd0 {
  padding: 0;
}

.pd20 {
  padding: 20px;
}

.common-table {
  width: 100%;
  font-size: 14px;
  color: #333333;
  /*控制行高*/
  .el-table__cell {
    height: 40px;
  }
  .cell {
    vertical-align: middle;
    //line-height: 14px;
    padding: 0 8px !important;
    /*调高行高保证字体完全展示*/
    line-height: 1.3;
  }
  .el-table__cell {
    padding: 8px 0;
  }
  thead {
    font-weight: 500;
    font-size: 14px;
    color: #666;
  }
  th.el-table__cell {
    background: rgba(204, 204, 204, 0.2);
  }
  .el-table__fixed-right-patch {
    border-right: 1px solid #f9fafc;
  }
  .el-table__header-wrapper {
    .el-table__header {
      tr {
        th {
          background: #f8f9f9;
          font-weight: 400;
          font-size: 14px;
          line-height: 14px;
          //color: #666;
          // color: #1F2E4D;
          color: #8f9bb3;
          border-bottom: none;
        }
      }
    }
  }
  .el-table__body-wrapper {
    background: #ffffff;
  }
  td.el-table__cell {
    border-bottom: 1px solid #f9fafc;
  }
  &.el-table--border {
    border-left: 1px solid #f9fafc;
    border-top: 1px solid #f9fafc;
    border-right: 1px solid #f9fafc;
    .el-table__cell {
      border-right: 1px solid #f9fafc;
    }
    .el-table__cell {
      &:last-child {
        border-right: none !important;
      }
    }
    .el-table__header-wrapper {
      .has-gutter {
        .el-table__cell {
          &:nth-last-child(2) {
            border-right: none !important;
          }
        }
      }
    }
  }
  &::before,
  &::after {
    background-color: transparent;
  }
  .el-table__body tr:hover > td.el-table__cell {
    background: #e1eefe;
  }
  .el-button--text {
    padding: 0;
    font-weight: normal;
  }
  .el-table-column--selection .cell {
    padding-right: 10px;
    text-align: center;
  }
}

.common-select.el-select,
.common-cascader.el-cascader,
.common-time-picker.el-date-editor {
  width: inherit;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  .el-input,
  .el-input__wrapper {
    opacity: 0;
  }
  .el-select__tags {
    height: 32px;
    .el-select-tags-wrapper {
      height: 35px;
      display: flex;
      overflow: auto;
    }
  }
}

.custom-table {
  height: 100%;
  display: flex;
  flex-direction: column;
  .tab-menu-list {
    display: flex;
    .tab-menu-item {
      min-width: 103px;
      text-align: center;
      font-size: 14px;
      color: #333333;
      padding: 7px 23px;
      border: 1px solid #e5e5e5;
      border-left: none;
      cursor: pointer;
      &:first-child {
        border-radius: 4px 0px 0px 4px;
        border-left: 1px solid #e5e5e5;
      }
      &:last-child {
        border-radius: 0px 4px 4px 0px;
      }
    }
    .action-menu {
      color: #358f80;
      font-weight: 600;
      background: #ebf9f0;
      border: 1px solid #358f80 !important;
      // color: #fff;
      // font-weight: 600;
      // background: #358F80;
      // border: 1px solid #358F80 !important;
    }
  }
}
 /**  自定义列表样式  **/
 .custom-table.el-table {
  --el-table-border-color: #fff;
  .el-table__header-wrapper .el-table__header .el-table__cell{
    background-color: #f2f5f5;
    border-right: 1px solid #fff;
    color: #333333;
  }
  td.el-table__cell,
  th.el-table__cell.is-leaf {
    border-bottom: 1px solid #eee;
  }
}

.my-table-page {
  height: 100%;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  background-color: #f2f2f2;
  box-sizing: border-box;
  .table-page-warp {
    height: 98%;
    background-color: #fff;
    padding: 10px;
    box-sizing: border-box;
    overflow: scroll;
  }
}


.my-table-content {
  height: 100%;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  background-color: #f8f9f9;
  .search-bar {
    margin-bottom: 8px;
  }
  .common-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    .panel-header {
      padding: 12px;
    }
    .my-table-wrapper {
      padding: 0;
    }
  }

  .common-panel {
    background-color: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    // height: calc(100% - 80px);
    // margin: 16px;
    .common-panel-empty {
      position: relative;
      .empty-text {
        position: absolute;
        top: calc(50% + 130px);
        left: 50%;
        transform: translate(-50%, -50%);
        color: #999999;
        font-size: 16px;
      }
    }
    .panel-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 16px;
    }
    .panel-body {
      flex: 1 1;
      overflow-x: hidden;
      margin: 0 -16px;
      padding: 0 16px;
    }
    .panel-footer {
      text-align: right;
      margin-top: 16px;
      display: flex;
      justify-content: flex-end;
    }
  }
}
.search-bar .search-bar-inner .el-form-item.form-btn-group {
  border: none;
}

.custom-dialog {
  .el-dialog__header {
    border-bottom: 1px solid #ebebeb;
    margin-right: 0;
    .el-dialog__title {
      font-size: 16px;
    }
  }
  .el-dialog__body {
    padding: 0;
  }
  .el-dialog__footer {
    padding: 24px 20px 20px 20px;
  }
}